using Haso.Plantform.Entities.Base;
using System;
using System.Runtime.Serialization;

namespace Haso.Plantform.Entities.HR
{
    /// <summary>
    /// 考勤记录
    /// </summary>
    [Serializable]
    [DataContract]
    public class AttendanceRecord : AbstractEntity
    {
        /// <summary>
        /// 职员编号 
        /// </summary>
        [DataMember]
        public int EmployeId { get; set; }

        /// <summary>
        /// 打卡日期 
        /// </summary>
        [DataMember]
        public DateTime CheckInDate { get; set; }

        /// <summary>
        /// 上班时间 
        /// </summary>
        [DataMember]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 下班时间 
        /// </summary>
        [DataMember]
        public DateTime EndTime { get; set; }
        [DataMember]
        public virtual Employee Employee { get; set; }
    }
}

